module.exports = async (ctx, next) => {
    // 当前时间的毫秒数
    const start = Date.now();
    await next();
    const used = Date.now() - start;
    console.log("请求耗时：", used + "ms");
};
